import React from 'react'; // jsx -> React.createElements
import store from './store/index'
import { Provider } from 'react-redux'
// 路由引入
import { BrowserRouter } from 'react-router-dom'
import RouterView from './router/index'
import config from './router/config'
import { Globalstyle } from './style'

import '@/mock/index.js'
 
// 无状态组件  使用无状态组件效率更高
const App = () => {
  return (
    <BrowserRouter>
     <Globalstyle/>
      <Provider store={store}>
        <RouterView routes={config}></RouterView>
      </Provider>
    </BrowserRouter>
  )
}

export default App;


